package com.yykj.tencent.oss.service;

import com.yykj.common.dto.StsDTO;
import com.yykj.common.util.LocalUploadFile;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

@Service
public class TencentCosService {

    public StsDTO sts() {
        LocalDate localDate = LocalDate.now();
        String dateStr = localDate.format(DateTimeFormatter.ofPattern("yyyyMMdd"));
        return LocalUploadFile.sts(dateStr);
    }

}
